﻿<%@ Control Language="VB" Inherits="System.Web.Mvc.ViewUserControl" %>
<table id="assetHolidayTable" class="data-table activeRows">    
    <thead>
        <tr>
            <th width="10px">
                &nbsp;
            </th>
            <th width="100px">
                Data
            </th>
            <th>
                Holiday
            </th>
        </tr>
    </thead>
    <tbody>
        <% For Each item In ViewData("Holidays")%>
        <tr id="holRow_<%: item.ID%>" onclick="setCurrentHoliday(<%: item.ID%>,'<%: item.Description%>','<%: String.Format("{0:d-MMM-yyyy}", item.HolidayDate)%>');">
            <td width="10px">
                <input type="image" src="/Content/img/delete.png" onclick="deleteWithEffect(<%: item.ID%>); return false;"
                    alt="Delete" />
            </td>
            <td width="30px">
                <%: String.Format("{0:d-MMM-yyyy}", item.HolidayDate)%>
            </td>
            <td>
                <%: item.Description%>
            </td>
        </tr>
        <% Next%>
    </tbody>
</table>